home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
Borland Visual dBASE Professiona v7.0
/
DATA1.CAB
/
Sample_dBASE
/
Fleet
/
Flight.rep
< prev
next >
Wrap
Text File
|
1997-11-20
|
7KB
|
268 lines
//--------------------------------------------------------------
//
// Flight.rep -- Flight Report
//
// This report displays the schedule in groups by flight ID.
//
// Dependencies: BWA.CRP
// SCHEDULE.DBF
// FLIGHT.DBF
//
// Visual dBASE Samples Group
//
// $Revision: 1.4 $
//
// Copyright (c) 1997, Borland International, Inc.
// All rights reserved.
//
//---------------------------------------------------------------
SET TALK OFF
** END HEADER -- do not remove this line
//
// Generated on 10/01/97
//
local r
r = new FLIGHTReport()
r.render()
class FLIGHTReport of BWAREPORT from "bwa.crp"
with (this)
title = "Schedule by Flight"
metric = 3
autoSort = false
scaleFontBold = false
endwith
this.FLIGHT1 = new QUERY()
this.FLIGHT1.parent = this
with (this.FLIGHT1)
left = 0.5
top = 0
database = form.DMCONNECT.ref.dbfleet
sql = 'SELECT Schedule."Flight ID", Schedule."Flight Date", Flight."From ID", Flight."To ID", Flight.DEPARTS, Flight.ARRIVES, Schedule."Aircraft ID" FROM "flight.dbf" Flight INNER JOIN "schedule.dbf" Schedule ON (Flight."Flight ID" = Schedule."Flight ID") ORDER BY schedule."Flight ID", schedule."Flight Date"'
requestLive = false
active = true
endwith
with (this.printer)
duplex = 1
orientation = 1
paperSource = 15
paperSize = 1
resolution = 4
color = 2
trueTypeFonts = 2
endwith
this.STREAMSOURCE1 = new STREAMSOURCE(this)
this.STREAMSOURCE1.GROUP1 = new GROUP(this.STREAMSOURCE1)
with (this.STREAMSOURCE1.GROUP1)
groupBy = "Flight ID"
endwith
with (this.STREAMSOURCE1.GROUP1.headerBand)
expandable = false
height = 0.6
endwith
this.STREAMSOURCE1.GROUP1.headerBand.LABELFLIGHTID = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.LABELFLIGHTID)
height = 0.15
top = 0.1
width = 0.6
metric = 3
colorNormal = "darkblue"
fontSize = 9
text = "<H4>Flight ID:</H4>"
endwith
this.STREAMSOURCE1.GROUP1.headerBand.VALUEFLIGHTID = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.VALUEFLIGHTID)
height = 0.15
left = 0.7
top = 0.1
width = 0.5
metric = 3
colorNormal = "darkblue"
fontSize = 9
text = {||"<h4> " + this.parent.parent.parent.rowset.fields["Flight ID"].value + "</h4>"}
endwith
this.STREAMSOURCE1.GROUP1.headerBand.TEXTFROMID1 = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.TEXTFROMID1)
height = 0.15
left = 1.5
top = 0.1
width = 1
metric = 3
variableHeight = true
colorNormal = "darkblue"
fontSize = 9
text = {||"<h4>" + this.form.form.flight1.rowset.fields["From ID"].value + " to " + this.form.form.flight1.rowset.fields["To ID"].value + "</h4>"}
endwith
this.STREAMSOURCE1.GROUP1.headerBand.TEXTDEPARTS1 = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.TEXTDEPARTS1)
height = 0.15
top = 0.3
width = 1.25
metric = 3
variableHeight = true
colorNormal = "darkblue"
fontSize = 9
text = {||"<h4>Departs: " + this.form.form.flight1.rowset.fields["DEPARTS"].value + "</h4>"}
endwith
this.STREAMSOURCE1.GROUP1.headerBand.TEXTARRIVES1 = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.TEXTARRIVES1)
height = 0.15
left = 1.5
top = 0.3
width = 1.5
metric = 3
variableHeight = true
colorNormal = "darkblue"
fontSize = 9
text = {||"<h4>Arrives: " + this.form.form.flight1.rowset.fields["ARRIVES"].value + "</h4>"}
endwith
with (this.STREAMSOURCE1.GROUP1.footerBand)
height = 1
endwith
this.STREAMSOURCE1.detailBand.TITLETEXTFLIGHTDATE1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTFLIGHTDATE1)
canRender = {||this.parent.firstOnFrame}
height = 0.15
left = 0.25
width = 1
metric = 3
colorNormal = "BtnText"
alignHorizontal = 1
suppressIfBlank = true
fontSize = 9
fontBold = true
fontUnderline = true
text = "Date"
endwith
this.STREAMSOURCE1.detailBand.TEXTFLIGHTDATE1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TEXTFLIGHTDATE1)
height = 0.12
left = 0.25
top = 0.2
width = 1
metric = 3
variableHeight = true
colorNormal = "BtnText"
alignHorizontal = 1
fontSize = 9
text = {||this.form.flight1.rowset.fields["Flight Date"].value}
endwith
this.STREAMSOURCE1.detailBand.TITLETEXTAIRCRAFTID1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTAIRCRAFTID1)
canRender = {||this.parent.firstOnFrame}
height = 0.15
left = 1.5
width = 1
metric = 3
colorNormal = "BtnText"
alignHorizontal = 1
suppressIfBlank = true
fontSize = 9
fontBold = true
fontUnderline = true
text = "Aircraft ID"
endwith
this.STREAMSOURCE1.detailBand.VALUEAIRCRAFTID = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.VALUEAIRCRAFTID)
height = 0.12
left = 1.5
top = 0.2
width = 1
metric = 3
variableHeight = true
colorNormal = "BtnText"
alignHorizontal = 1
fontSize = 9
text = {||this.form.flight1.rowset.fields["Aircraft ID"].value}
borderStyle = 3
endwith
this.PAGETEMPLATE1.TITLE1 = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TITLE1)
height = 0.5
width = 3
metric = 3
colorNormal = "darkblue"
alignVertical = 1
alignHorizontal = 1
fontName = "Times New Roman"
text = "<H1>Schedule by Flight</H1>"
borderStyle = 6
form.TITLE1 = form.pagetemplate1.title1
endwith
this.PAGETEMPLATE1.TEXTDATE = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TEXTDATE)
height = 0.25
top = 0.6042
width = 1
metric = 3
colorNormal = "BtnText"
text = {||Date()}
form.TEXTDATE = form.pagetemplate1.textdate
endwith
this.PAGETEMPLATE1.TEXTPAGE = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TEXTPAGE)
height = 0.25
left = 2
top = 0.6042
width = 0.8021
metric = 3
colorNormal = "BtnText"
alignHorizontal = 2
text = {||"Page: " + this.parent.parent.reportPage}
form.TEXTPAGE = form.pagetemplate1.textpage
endwith
this.firstPageTemplate = this.form.pagetemplate1
this.form.pagetemplate1.nextPageTemplate = this.form.pagetemplate1
this.form.pagetemplate1.streamframe1.streamSource = this.form.STREAMSOURCE1
this.form.STREAMSOURCE1.rowset = this.form.flight1.rowset
endclass